package com.example.roadeyeserver.controller;

import com.example.roadeyeserver.entity.vo.GpsNbkyVO;
import com.example.roadeyeserver.result.Result;
import com.example.roadeyeserver.service.GpsNbkyService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("gpsNbky")
public class GpsNbkyController {

    @Resource
    private GpsNbkyService gpsNbkyService;

    @PostMapping("getLatestGpsCars")
    public Result<List<GpsNbkyVO>> getLastestCars() {
        return gpsNbkyService.getLatestGpsCars();
    }

}
